Optimal. Leaf size=122 \[ \frac {(b c-a d)^2 \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{3/2}}-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}-\frac {\sqrt {a+b x} \sqrt {c+d x} (b c-a d)}{4 a c x} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 122, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {94, 93, 208} \begin {gather*} \frac {(b c-a d)^2 \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{3/2}}-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}-\frac {\sqrt {a+b x} \sqrt {c+d x} (b c-a d)}{4 a c x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 93
Rule 94
Rule 208
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x} \sqrt {c+d x}}{x^3} \, dx &=-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}+\frac {(b c-a d) \int \frac {\sqrt {c+d x}}{x^2 \sqrt {a+b x}} \, dx}{4 c}\\ &=-\frac {(b c-a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c x}-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}-\frac {(b c-a d)^2 \int \frac {1}{x \sqrt {a+b x} \sqrt {c+d x}} \, dx}{8 a c}\\ &=-\frac {(b c-a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c x}-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}-\frac {(b c-a d)^2 \operatorname {Subst}\left (\int \frac {1}{-a+c x^2} \, dx,x,\frac {\sqrt {a+b x}}{\sqrt {c+d x}}\right )}{4 a c}\\ &=-\frac {(b c-a d) \sqrt {a+b x} \sqrt {c+d x}}{4 a c x}-\frac {\sqrt {a+b x} (c+d x)^{3/2}}{2 c x^2}+\frac {(b c-a d)^2 \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 99, normalized size = 0.81 \begin {gather*} \frac {(b c-a d)^2 \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x}}{\sqrt {a} \sqrt {c+d x}}\right )}{4 a^{3/2} c^{3/2}}-\frac {\sqrt {a+b x} \sqrt {c+d x} (2 a c+a d x+b c x)}{4 a c x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.22, size = 129, normalized size = 1.06 \begin {gather*} \frac {(a d-b c)^2 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {c+d x}}{\sqrt {c} \sqrt {a+b x}}\right )}{4 a^{3/2} c^{3/2}}-\frac {\sqrt {c+d x} (a d-b c)^2 \left (\frac {a (c+d x)}{a+b x}+c\right )}{4 a c \sqrt {a+b x} \left (\frac {a (c+d x)}{a+b x}-c\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.38, size = 326, normalized size = 2.67 \begin {gather*} \left [\frac {{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \sqrt {a c} x^{2} \log \left (\frac {8 \, a^{2} c^{2} + {\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{2} + 4 \, {\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {a c} \sqrt {b x + a} \sqrt {d x + c} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x}{x^{2}}\right ) - 4 \, {\left (2 \, a^{2} c^{2} + {\left (a b c^{2} + a^{2} c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{16 \, a^{2} c^{2} x^{2}}, -\frac {{\left (b^{2} c^{2} - 2 \, a b c d + a^{2} d^{2}\right )} \sqrt {-a c} x^{2} \arctan \left (\frac {{\left (2 \, a c + {\left (b c + a d\right )} x\right )} \sqrt {-a c} \sqrt {b x + a} \sqrt {d x + c}}{2 \, {\left (a b c d x^{2} + a^{2} c^{2} + {\left (a b c^{2} + a^{2} c d\right )} x\right )}}\right ) + 2 \, {\left (2 \, a^{2} c^{2} + {\left (a b c^{2} + a^{2} c d\right )} x\right )} \sqrt {b x + a} \sqrt {d x + c}}{8 \, a^{2} c^{2} x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 4.14, size = 1081, normalized size = 8.86 \begin {gather*} \frac {\frac {{\left (\sqrt {b d} b^{3} c^{2} {\left | b \right |} - 2 \, \sqrt {b d} a b^{2} c d {\left | b \right |} + \sqrt {b d} a^{2} b d^{2} {\left | b \right |}\right )} \arctan \left (-\frac {b^{2} c + a b d - {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2}}{2 \, \sqrt {-a b c d} b}\right )}{\sqrt {-a b c d} a b c} - \frac {2 \, {\left (\sqrt {b d} b^{9} c^{5} {\left | b \right |} - 3 \, \sqrt {b d} a b^{8} c^{4} d {\left | b \right |} + 2 \, \sqrt {b d} a^{2} b^{7} c^{3} d^{2} {\left | b \right |} + 2 \, \sqrt {b d} a^{3} b^{6} c^{2} d^{3} {\left | b \right |} - 3 \, \sqrt {b d} a^{4} b^{5} c d^{4} {\left | b \right |} + \sqrt {b d} a^{5} b^{4} d^{5} {\left | b \right |} - 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} b^{7} c^{4} {\left | b \right |} + 4 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b^{6} c^{3} d {\left | b \right |} - 2 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{2} b^{5} c^{2} d^{2} {\left | b \right |} + 4 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{3} b^{4} c d^{3} {\left | b \right |} - 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a^{4} b^{3} d^{4} {\left | b \right |} + 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} b^{5} c^{3} {\left | b \right |} + 5 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a b^{4} c^{2} d {\left | b \right |} + 5 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a^{2} b^{3} c d^{2} {\left | b \right |} + 3 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4} a^{3} b^{2} d^{3} {\left | b \right |} - \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} b^{3} c^{2} {\left | b \right |} - 6 \, \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} a b^{2} c d {\left | b \right |} - \sqrt {b d} {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{6} a^{2} b d^{2} {\left | b \right |}\right )}}{{\left (b^{4} c^{2} - 2 \, a b^{3} c d + a^{2} b^{2} d^{2} - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} b^{2} c - 2 \, {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{2} a b d + {\left (\sqrt {b d} \sqrt {b x + a} - \sqrt {b^{2} c + {\left (b x + a\right )} b d - a b d}\right )}^{4}\right )}^{2} a c}}{4 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 305, normalized size = 2.50 \begin {gather*} \frac {\sqrt {b x +a}\, \sqrt {d x +c}\, \left (a^{2} d^{2} x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {b d \,x^{2}+a d x +b c x +a c}}{x}\right )-2 a b c d \,x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {b d \,x^{2}+a d x +b c x +a c}}{x}\right )+b^{2} c^{2} x^{2} \ln \left (\frac {a d x +b c x +2 a c +2 \sqrt {a c}\, \sqrt {b d \,x^{2}+a d x +b c x +a c}}{x}\right )-2 \sqrt {a c}\, \sqrt {b d \,x^{2}+a d x +b c x +a c}\, a d x -2 \sqrt {a c}\, \sqrt {b d \,x^{2}+a d x +b c x +a c}\, b c x -4 \sqrt {b d \,x^{2}+a d x +b c x +a c}\, \sqrt {a c}\, a c \right )}{8 \sqrt {b d \,x^{2}+a d x +b c x +a c}\, \sqrt {a c}\, a c \,x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 19.75, size = 869, normalized size = 7.12 \begin {gather*} \frac {\frac {b^4}{32\,\sqrt {a}\,\sqrt {c}\,d^2}-\frac {\left (\frac {c\,b^2}{16}+\frac {a\,d\,b}{16}\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^5}{a\,c\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2\,\left (\frac {5\,a^2\,b^2\,d^2}{32}+\frac {3\,a\,b^3\,c\,d}{8}+\frac {5\,b^4\,c^2}{32}\right )}{a^{3/2}\,c^{3/2}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}-\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3\,\left (\frac {a^3\,b\,d^3}{16}+\frac {3\,a^2\,b^2\,c\,d^2}{8}+\frac {3\,a\,b^3\,c^2\,d}{8}+\frac {b^4\,c^3}{16}\right )}{a^2\,c^2\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}-\frac {\left (\frac {c\,b^4}{8}+\frac {a\,d\,b^3}{8}\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{a\,c\,d^2\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4\,\left (-\frac {a^4\,d^4}{32}+\frac {a^3\,b\,c\,d^3}{4}+\frac {3\,a^2\,b^2\,c^2\,d^2}{32}+\frac {a\,b^3\,c^3\,d}{4}-\frac {b^4\,c^4}{32}\right )}{a^{5/2}\,c^{5/2}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}}{\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^6}{{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}+\frac {b^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}+\frac {{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^4\,\left (a^2\,d^2+4\,a\,b\,c\,d+b^2\,c^2\right )}{a\,c\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}-\frac {\left (2\,c\,b^2+2\,a\,d\,b\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^3}{\sqrt {a}\,\sqrt {c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^3}-\frac {\left (2\,a\,d+2\,b\,c\right )\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^5}{\sqrt {a}\,\sqrt {c}\,d\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^5}}-\frac {\ln \left (\frac {\left (\sqrt {c}\,\sqrt {a+b\,x}-\sqrt {a}\,\sqrt {c+d\,x}\right )\,\left (b\,\sqrt {c}-\frac {\sqrt {a}\,d\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{\sqrt {c+d\,x}-\sqrt {c}}\right )}{\sqrt {c+d\,x}-\sqrt {c}}\right )\,\left (\sqrt {a}\,b^2\,c^{5/2}+a^{5/2}\,\sqrt {c}\,d^2-2\,a^{3/2}\,b\,c^{3/2}\,d\right )}{8\,a^2\,c^2}+\frac {\ln \left (\frac {\sqrt {a+b\,x}-\sqrt {a}}{\sqrt {c+d\,x}-\sqrt {c}}\right )\,\left (\sqrt {a}\,b^2\,c^{5/2}+a^{5/2}\,\sqrt {c}\,d^2-2\,a^{3/2}\,b\,c^{3/2}\,d\right )}{8\,a^2\,c^2}+\frac {d^2\,{\left (\sqrt {a+b\,x}-\sqrt {a}\right )}^2}{32\,\sqrt {a}\,\sqrt {c}\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}-\frac {d\,\left (a\,d+b\,c\right )\,\left (\sqrt {a+b\,x}-\sqrt {a}\right )}{16\,a\,c\,\left (\sqrt {c+d\,x}-\sqrt {c}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + b x} \sqrt {c + d x}}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________